<template>
	<view class="activity-card-container" :style="{width: imgWidth}">
		<image :src="data.url" :style="{width: imgWidth, height: imgHeight}" mode=""></image>
		<view class="content" :style="{width: imgWidth}">
			<view class="title">
				{{ data.title }}
			</view>
			<view class="info">
				<view class="activity-info">
					<view>{{ data.date }}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"ActivityCard",
		props: {
			imgWidth: {
				type: String | Number,
				default: '100%'
			},
			imgHeight: {
				type: String | Number,
				default: '320rpx'
			},
			data: {
				type: Object,
				required: true
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
.activity-card-container {
	display: inline-block;
	background-color: #fff;
	.content {
		margin: 25rpx;
		margin-top: 0;
		.info{
			display: flex;
			.activity-info {
				margin-top: 16rpx;
				width: 70%;
				font-size: 24rpx;
				font-weight: 400;
				color: #717680;
			}
			.btn-like {
				width: 129rpx;
				height: 50rpx;
				background: #0051FF;
				border-radius: 25rpx;
				color: #fff;
				text-align: center;
			}
		}
	}
}
</style>